/*
 * Copyright (c) 2016 MaxSky.TK. All Rights Reserved.
 */

package cn.studyjams.s1.sj47.maxsky;

import android.os.Bundle;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.text.method.LinkMovementMethod;
import android.widget.TextView;

public class AboutActivity extends AppCompatActivity {


	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_about);
		Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
		setSupportActionBar(toolbar);
		ActionBar actionBar = getSupportActionBar();
		if (actionBar != null) {
			actionBar.setDisplayHomeAsUpEnabled(true);
		}
		TextView blogTextLink;
		TextView emailTextLink;
		blogTextLink = (TextView) findViewById(R.id.about_txt_blog);
		emailTextLink = (TextView) findViewById(R.id.about_txt_email);
		if (blogTextLink != null) {
			blogTextLink.setMovementMethod(LinkMovementMethod.getInstance());
		}
		if (emailTextLink != null) {
			emailTextLink.setMovementMethod(LinkMovementMethod.getInstance());
		}
	}

}
